package com.ssh.entity;

import java.sql.Timestamp;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

@Entity
public class MarketAnalysis extends BaseEntity{
	private static final long serialVersionUID = 6002548593623858681L;
	private float targetPrice;
	private float price;
	private float targetChenlie;
	private float chenlie;
	private float targetHuodong;
	private float huodong;
	private float targetHaibao;
	private float haibao;
	private float targetDuitou;
	private float duitou;
	private float targetZhuangui;
	private float zhuangui;
	private Timestamp time;
	private Integer del;
	private int year;
	private int month;
	private int day;
	private SuperMarket superMarket;
	private Product product;
	
	public MarketAnalysis(){
		
	}
	
	public Integer getDel() {
		return del;
	}

	public void setDel(Integer del) {
		this.del = del;
	}

	public float getTargetPrice() {
		return targetPrice;
	}

	public void setTargetPrice(float targetPrice) {
		this.targetPrice = targetPrice;
	}

	public float getPrice() {
		return price;
	}

	public void setPrice(float price) {
		this.price = price;
	}

	public float getTargetChenlie() {
		return targetChenlie;
	}

	public void setTargetChenlie(float targetChenlie) {
		this.targetChenlie = targetChenlie;
	}

	public float getChenlie() {
		return chenlie;
	}

	public void setChenlie(float chenlie) {
		this.chenlie = chenlie;
	}

	public float getTargetHuodong() {
		return targetHuodong;
	}

	public void setTargetHuodong(float targetHuodong) {
		this.targetHuodong = targetHuodong;
	}

	public float getHuodong() {
		return huodong;
	}

	public void setHuodong(float huodong) {
		this.huodong = huodong;
	}

	public float getTargetHaibao() {
		return targetHaibao;
	}

	public void setTargetHaibao(float targetHaibao) {
		this.targetHaibao = targetHaibao;
	}

	public float getHaibao() {
		return haibao;
	}

	public void setHaibao(float haibao) {
		this.haibao = haibao;
	}

	public float getTargetDuitou() {
		return targetDuitou;
	}

	public void setTargetDuitou(float targetDuitou) {
		this.targetDuitou = targetDuitou;
	}

	public float getDuitou() {
		return duitou;
	}

	public void setDuitou(float duitou) {
		this.duitou = duitou;
	}

	public float getTargetZhuangui() {
		return targetZhuangui;
	}

	public void setTargetZhuangui(float targetZhuangui) {
		this.targetZhuangui = targetZhuangui;
	}

	public float getZhuangui() {
		return zhuangui;
	}

	public void setZhuangui(float zhuangui) {
		this.zhuangui = zhuangui;
	}

	public Timestamp getTime() {
		return time;
	}

	public void setTime(Timestamp time) {
		this.time = time;
	}

	@ManyToOne(cascade ={CascadeType.ALL},fetch = FetchType.LAZY)       
    @JoinColumn(name="marketId")
	public SuperMarket getSuperMarket() {
		return superMarket;
	}

	public void setSuperMarket(SuperMarket superMarket) {
		this.superMarket = superMarket;
	}

	@ManyToOne(cascade ={CascadeType.ALL},fetch = FetchType.LAZY)       
    @JoinColumn(name="productId")
	public Product getProduct() {
		return product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}

	public int getYear() {
		return year;
	}

	public void setYear(int year) {
		this.year = year;
	}

	public int getMonth() {
		return month;
	}

	public void setMonth(int month) {
		this.month = month;
	}

	public int getDay() {
		return day;
	}

	public void setDay(int day) {
		this.day = day;
	}
	
}
